import { DELETE, GET, POST } from '../axios.config.js'

const base = window.config.ip
const projectName = '/business'

// 获取全部判定规则
export const listAllRulesApi = p => GET(`${base}${projectName}/ZcRulesManage/listAllRules`, p)

// 新增判定规则
export const saveRulesApi = p => POST(`${base}${projectName}/ZcRulesManage/saveRules`, p)

// 获取判定规则列表
export const listRulePagesApi = p => GET(`${base}${projectName}/ZcRulesManage/listRulePages`, p)

// 获取判定规则详情
export const getRuleDetailApi = p => GET(`${base}${projectName}/ZcRulesManage/getRuleDetail`, p)

// 删除判定规则
export const deleteRuleApi = id => DELETE(`${base}${projectName}/ZcRulesManage/deleteRule?id=${id}`)
